package com.kitty.game.task.service.taskHandler;

import com.kitty.game.config.TaskSet;
import com.kitty.game.role.model.Role;
import com.kitty.game.task.model.product.TaskType;
import org.springframework.stereotype.Component;

@Component
public class RechargeScoreTaskHandler extends TaskHandler {
    @Override
    public TaskType getTaskType() {
        return TaskType.SCORE;
    }

    @Override
    public boolean acceptTask(Role role, TaskSet taskSet) {
       /* if (!canAcceptTask(role, taskSet)) {
            return false;
        }*/

        doBeforeAccept(role, taskSet);

        doAcceptTask(role, taskSet);

        doAfterAccept(role, taskSet);

        return true;
    }

    @Override
    public void doBeforeAccept(Role role, TaskSet taskSet) {

    }
}

